package com.endes.android.view.aplicacion.componentes;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;

import com.endes.android.context.Aplicacion;

public class ArchivoEndes {

	FileInputStream fis = null;
	BufferedReader reader = null;
	
	public ArchivoEndes(String filename) throws FileNotFoundException {		
    	File f = new File(Aplicacion.APP_ROOT,filename);
		fis = new FileInputStream(f);
		reader = new BufferedReader(new InputStreamReader(fis));
	}
	
	public BufferedReader getReader() {
		return this.reader;
	}
	
	
	public void cerrar() throws IOException {
		if(fis!=null)
    		fis.close();
    	if(reader!=null)
    		reader.close();
	}
}
